home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct10020.geo / 00230.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  18.1 KB  |  839 lines

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   repeat with i = 42 to 47
  22.     set the immediate of sprite i to 1
  23.     set the puppet of sprite i to 1
  24.   end repeat
  25.   set the puppet of sprite get_NavigatorHL() to 1
  26.   set the puppet of sprite Get_MarkSprite() to 1
  27.   set the mouseDownScript to "CheckOpenWindow"
  28.   Set_NEXT(1)
  29. end
  30.  
  31. on InitSubjectSprite
  32.   if Get_ScreenSubject() <> "00" then
  33.     Set_SubjectSprite(39)
  34.     set the puppet of sprite Get_SubjectSprite() to 1
  35.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  36.     UpdateCursors(Get_SubjectSprite(), 4)
  37.   end if
  38. end
  39.  
  40. on GoToIntro
  41.   if Get_ScreenSubject() <> "00" then
  42.     set theNum to integer(Get_ScreenSubject())
  43.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  44.   end if
  45. end
  46.  
  47. on Set_SubjectSprite theSp
  48.   global SubjectSprite
  49.   set SubjectSprite to theSp
  50. end
  51.  
  52. on Get_SubjectSprite
  53.   global SubjectSprite
  54.   return SubjectSprite
  55. end
  56.  
  57. on Set_SubjectHeight theSp
  58.   global SubjectHeight
  59.   set SubjectHeight to theSp
  60. end
  61.  
  62. on Get_SubjectHeight
  63.   global SubjectHeight
  64.   return SubjectHeight
  65. end
  66.  
  67. on CheckForTagWd
  68.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  69.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  70.     set the cursor of sprite 48 to [400, 401]
  71.   end if
  72. end
  73.  
  74. on PlaySound theSnd
  75.   global PCDEL
  76.   if Get_PlayDub() then
  77.     sound playFile 2, the pathName & "SND10" & PCDEL & theSnd
  78.   end if
  79. end
  80.  
  81. on GoMain
  82.   sound stop 2
  83.   SaveSeenScreens()
  84.   go(1, "NC_MM010.GEO")
  85. end
  86.  
  87. on GoFind
  88.   global FindWD, CDfilePath, PCDEL
  89.   if objectp(FindWD) then
  90.     forget(FindWD)
  91.   end if
  92.   set the cursor of sprite 48 to [400, 401]
  93.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  94.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  95.   set the titleVisible of FindWD to 0
  96.   set the modal of FindWD to 1
  97.   open(FindWD)
  98. end
  99.  
  100. on HideFINDWindow
  101.   global FindWD
  102.   if objectp(FindWD) then
  103.     forget(FindWD)
  104.   end if
  105. end
  106.  
  107. on closeFindWindow
  108.   global FindWD
  109.   if objectp(FindWD) then
  110.     forget(FindWD)
  111.   end if
  112.   set the cursor of sprite 48 to 0
  113.   tell the stage
  114.     continue()
  115.   end tell
  116. end
  117.  
  118. on OpenFind2WD theData
  119.   global Find2WD, CDfilePath, PCDEL
  120.   HideFINDWindow()
  121.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  122.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  123.   set the titleVisible of Find2WD to 0
  124.   set the modal of Find2WD to 1
  125.   tell Find2WD
  126.     UpdateSelection(theData)
  127.   end tell
  128.   open(Find2WD)
  129. end
  130.  
  131. on CloseFind2Window
  132.   global Find2WD
  133.   if objectp(Find2WD) then
  134.     forget(Find2WD)
  135.   end if
  136.   set the cursor of sprite 48 to 0
  137.   tell the stage
  138.     continue()
  139.   end tell
  140. end
  141.  
  142. on GoIndex
  143.   global IndexWD, CDfilePath, PCDEL
  144.   if objectp(IndexWD) then
  145.     forget(IndexWD)
  146.   end if
  147.   set the cursor of sprite 48 to [400, 401]
  148.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  149.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  150.   set the titleVisible of IndexWD to 0
  151.   set the modal of IndexWD to 1
  152.   tell IndexWD
  153.     RonenInit()
  154.   end tell
  155.   open(IndexWD)
  156. end
  157.  
  158. on OpenWordWD theData
  159.   global WordWD, CDfilePath, PCDEL
  160.   HIdeIndexWindow()
  161.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  162.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  163.   set the titleVisible of WordWD to 0
  164.   set the modal of WordWD to 1
  165.   tell WordWD
  166.     UpdateSelection(theData)
  167.   end tell
  168.   open(WordWD)
  169. end
  170.  
  171. on CloseWordWindow
  172.   global WordWD
  173.   if objectp(WordWD) then
  174.     forget(WordWD)
  175.   end if
  176.   set the cursor of sprite 48 to 0
  177.   tell the stage
  178.     continue()
  179.   end tell
  180. end
  181.  
  182. on HIdeIndexWindow
  183.   global IndexWD
  184.   if objectp(IndexWD) then
  185.     forget(IndexWD)
  186.   end if
  187. end
  188.  
  189. on CloseIndexWindow
  190.   global IndexWD
  191.   if objectp(IndexWD) then
  192.     forget(IndexWD)
  193.   end if
  194.   set the cursor of sprite 48 to 0
  195.   tell the stage
  196.     continue()
  197.   end tell
  198. end
  199.  
  200. on GoIndexMovie thekind
  201.   if thekind = "tool" then
  202.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  203.   else
  204.     go(1, Get_IndexMovie())
  205.   end if
  206. end
  207.  
  208. on set_IndexMovie theMoov
  209.   global IndexMovie
  210.   set IndexMovie to theMoov
  211. end
  212.  
  213. on Get_IndexMovie theMoov
  214.   global IndexMovie
  215.   return IndexMovie
  216. end
  217.  
  218. on GoTags
  219.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  220.   if objectp(TagWD) then
  221.     forget(TagWD)
  222.   end if
  223.   set the cursor of sprite 48 to [400, 401]
  224.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  225.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  226.   set the titleVisible of TagWD to 0
  227.   set the modal of TagWD to 1
  228.   tell TagWD
  229.     UpdateFields()
  230.     PlaceMySlider()
  231.     init()
  232.   end tell
  233.   open(TagWD)
  234. end
  235.  
  236. on OpenRenameWD theLine
  237.   global RenameWD, CDfilePath, PCDEL
  238.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  239.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  240.   set the titleVisible of RenameWD to 0
  241.   set the modal of RenameWD to 1
  242.   tell RenameWD
  243.     UpdateLine(theLine)
  244.   end tell
  245.   open(RenameWD)
  246. end
  247.  
  248. on UpdateRenameWD theText
  249.   global TagWD
  250.   tell TagWD
  251.     UpdateRename(theText)
  252.   end tell
  253.   CloseRenameWD()
  254. end
  255.  
  256. on CloseRenameWD
  257.   global RenameWD
  258.   if objectp(RenameWD) then
  259.     forget(RenameWD)
  260.   end if
  261. end
  262.  
  263. on OpenSureWD
  264.   global SureWD, CDfilePath, PCDEL
  265.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  266.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  267.   set the titleVisible of SureWD to 0
  268.   set the modal of SureWD to 1
  269.   open(SureWD)
  270. end
  271.  
  272. on CloseSureWD
  273.   global SureWD
  274.   if objectp(SureWD) then
  275.     forget(SureWD)
  276.   end if
  277. end
  278.  
  279. on ClearAllTags
  280.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  281.   CloseSureWD()
  282.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  283.   set TAGS_LIST to []
  284.   set TAGS_TITLES to EMPTY
  285.   set TAGS_DATA to EMPTY
  286.   tell TagWD
  287.     UpdateFields()
  288.     PlaceMySlider()
  289.     init()
  290.   end tell
  291.   updateStage()
  292. end
  293.  
  294. on CloseTagWindow
  295.   global TagWD
  296.   if objectp(TagWD) then
  297.     forget(TagWD)
  298.   end if
  299.   set the cursor of sprite 48 to 0
  300.   tell the stage
  301.     continue()
  302.   end tell
  303. end
  304.  
  305. on GoTagMovie
  306.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  307. end
  308.  
  309. on Set_TagMovie theMovie
  310.   global TagMovie
  311.   set TagMovie to theMovie
  312. end
  313.  
  314. on Get_TagMovie
  315.   global TagMovie
  316.   return TagMovie
  317. end
  318.  
  319. on MarkScreen toMark
  320.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  321.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  322.   set movieName to the movieName
  323.   if toMark = "MARK" then
  324.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  325.     set LineNum to count(TAGS_LIST)
  326.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  327.     put TheTitle into line LineNum of TAGS_TITLES
  328.     put movieName into item 1 of line LineNum of TAGS_DATA
  329.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  330.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  331.   else
  332.     set itemNum to getOne(TAGS_LIST, movieName)
  333.     deleteAt(TAGS_LIST, itemNum)
  334.     delete line itemNum of TAGS_TITLES
  335.     delete line itemNum of TAGS_DATA
  336.   end if
  337.   updateStage()
  338. end
  339.  
  340. on UpdateMark
  341.   global TAGS_LIST
  342.   set movieName to the movieName
  343.   if getOne(TAGS_LIST, movieName) then
  344.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  345.   end if
  346. end
  347.  
  348. on HandleSound
  349.   global volumeWindow, CDfilePath, PCDEL
  350.   if objectp(volumeWindow) then
  351.     forget(volumeWindow)
  352.   end if
  353.   EnableBtn("SOUND", get_SOUNDSprite())
  354.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  355.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  356.   set the titleVisible of volumeWindow to 0
  357.   tell volumeWindow
  358.     RestoreSoundStatus()
  359.   end tell
  360.   open(volumeWindow)
  361. end
  362.  
  363. on handleQuit
  364.   global QuitWindow, CDfilePath, PCDEL
  365.   cursor(4)
  366.   if objectp(QuitWindow) then
  367.     forget(QuitWindow)
  368.   end if
  369.   set the cursor of sprite 48 to [400, 401]
  370.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  371.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  372.   set the titleVisible of QuitWindow to 0
  373.   set the modal of QuitWindow to 1
  374.   open(QuitWindow)
  375. end
  376.  
  377. on handleHELP
  378.   EnableBtn("HELP", get_HELPSprite())
  379.   openHelpWd()
  380. end
  381.  
  382. on openHelpWd
  383.   global helpWD, lastFrame, CDfilePath, PCDEL
  384.   set the cursor of sprite 48 to [400, 401]
  385.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  386.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  387.   set the titleVisible of helpWD to 0
  388.   set the modal of helpWD to 1
  389.   open(helpWD)
  390.   set lastFrame to the frame
  391.   go("helpLoop")
  392. end
  393.  
  394. on closeHelpWd
  395.   global helpWD, lastFrame
  396.   set the cursor of sprite 48 to 0
  397.   forget(helpWD)
  398.   go(lastFrame)
  399. end
  400.  
  401. on HandleNEXT
  402.   GoNext()
  403.   EnableBtn("NEXT", get_NEXTSprite())
  404. end
  405.  
  406. on HandleBACK
  407.   HideLastStep()
  408.   EnableBtn("BACK", get_BACKSprite())
  409.   EnableBtn("NEXT", get_NEXTSprite())
  410.   Set_NEXT(1)
  411.   sound stop 2
  412.   go("start")
  413. end
  414.  
  415. on HandleGLOSSARY
  416.   global DicWindow
  417.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  418.   set the cursor of sprite 48 to [400, 401]
  419.   open(DicWindow)
  420.   tell the stage
  421.     pause()
  422.   end tell
  423.   tell DicWindow
  424.     go(2)
  425.   end tell
  426. end
  427.  
  428. on closeGLOSSARYwindow
  429.   set the cursor of sprite 48 to 0
  430.   continue()
  431. end
  432.  
  433. on closeNotePadWindow
  434.   set the cursor of sprite 48 to 0
  435.   continue()
  436. end
  437.  
  438. on HandleNOTEPAD
  439.   global NoteBookWindow, CDfilePath, PCDEL
  440.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  441.   set the cursor of sprite 48 to [400, 401]
  442.   if objectp(NoteBookWindow) then
  443.     forget(NoteBookWindow)
  444.   end if
  445.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  446.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  447.   set NBRect to the rect of NoteBookWindow
  448.   set x1 to getAt(NBRect, 1)
  449.   set y1 to getAt(NBRect, 2)
  450.   set x2 to getAt(NBRect, 3)
  451.   set y2 to getAt(NBRect, 4)
  452.   set the modal of NoteBookWindow to 1
  453.   set the windowType of NoteBookWindow to 2
  454.   set the titleVisible of window "NoteBook" to 0
  455.   open(NoteBookWindow)
  456. end
  457.  
  458. on createNoteBook
  459.   global NBPrintWindow, CDfilePath, PCDEL
  460.   if objectp(NBPrintWindow) then
  461.     forget(NBPrintWindow)
  462.   end if
  463.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  464.   set StageRect to the rect of the stage
  465.   set x1 to getAt(StageRect, 1)
  466.   set y1 to getAt(StageRect, 2)
  467.   set x2 to getAt(StageRect, 3)
  468.   set y2 to getAt(StageRect, 4)
  469.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  470.   set NBRect to the rect of NBPrintWindow
  471.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  472.   set the windowType of NBPrintWindow to 2
  473.   open(NBPrintWindow)
  474. end
  475.  
  476. on closePrintWindow
  477.   RestoreHilites()
  478. end
  479.  
  480. on closeQuitWindow
  481.   global QuitWindow
  482.   set the cursor of sprite 48 to 0
  483.   forget(QuitWindow)
  484.   continue()
  485. end
  486.  
  487. on leaveApplication
  488.   global QuitWindow, UsersData, TheBackWindow
  489.   forget(QuitWindow)
  490.   if the machineType <> 256 then
  491.   end if
  492.   quit()
  493. end
  494.  
  495. on keyDown
  496.   if not get_Disabled() then
  497.     if the commandDown and ((the key = "q") or (the key = ".")) then
  498.       handleQuit()
  499.     else
  500.       if (the keyCode = 76) or (the keyCode = 36) then
  501.         HandleNEXT()
  502.       else
  503.         pass()
  504.       end if
  505.     end if
  506.   else
  507.     pass()
  508.   end if
  509. end
  510.  
  511. on CheckOpenWindow
  512.   global volumeWindow
  513.   if objectp(volumeWindow) then
  514.     forget(volumeWindow)
  515.     continue()
  516.   end if
  517. end
  518.  
  519. on CheckRollOver
  520.   if rollOver(get_IndexSprite()) then
  521.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  522.     set Hloc to the locH of sprite get_IndexSprite()
  523.     set Vloc to the locV of sprite get_IndexSprite()
  524.   else
  525.     if rollOver(get_FindSprite()) then
  526.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  527.       set Hloc to the locH of sprite get_FindSprite()
  528.       set Vloc to the locV of sprite get_FindSprite()
  529.     else
  530.       if rollOver(Get_TagWdSprite()) then
  531.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  532.         set Hloc to the locH of sprite Get_TagWdSprite()
  533.         set Vloc to the locV of sprite Get_TagWdSprite()
  534.       else
  535.         set Hloc to EMPTY
  536.       end if
  537.     end if
  538.   end if
  539.   if Hloc <> EMPTY then
  540.     set the locH of sprite get_NavigatorHL() to Hloc
  541.     set the locV of sprite get_NavigatorHL() to Vloc
  542.     set the visible of sprite get_NavigatorHL() to 1
  543.     updateStage()
  544.   else
  545.     set the visible of sprite get_NavigatorHL() to 0
  546.     updateStage()
  547.   end if
  548. end
  549.  
  550. on setDefaultCursor
  551.   set cursorList to getCursorList()
  552.   set counter to count(cursorList)
  553.   repeat with i = 1 to counter
  554.     set currItem to getAt(cursorList, i)
  555.     if currItem <> 0 then
  556.       set CursorCastNum to getCursor(currItem)
  557.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  558.     end if
  559.   end repeat
  560. end
  561.  
  562. on UpdateCursors theSp, theCursor
  563.   global cursorList
  564.   setAt(cursorList, theSp, theCursor)
  565.   if theCursor = 0 then
  566.     set the cursor of sprite theSp to theCursor
  567.   else
  568.     set CursorCastNum to getCursor(theCursor)
  569.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  570.   end if
  571. end
  572.  
  573. on setEmptyCursor
  574.   set cursorList to getCursorList()
  575.   set counter to count(cursorList)
  576.   repeat with i = 1 to counter
  577.     set currItem to getAt(cursorList, i)
  578.     if currItem <> 0 then
  579.       set the cursor of sprite i to 0
  580.       setAt(cursorList, i, 0)
  581.     end if
  582.   end repeat
  583. end
  584.  
  585. on setCursorTool int
  586.   global CursorTool
  587.   set CursorTool to int
  588. end
  589.  
  590. on initCursorCastNum
  591.   global CursorCastNum
  592.   set CursorCastNum to "400,402,404,406"
  593. end
  594.  
  595. on getCursor cursorNum
  596.   global CursorCastNum
  597.   return integer(item cursorNum of CursorCastNum)
  598. end
  599.  
  600. on initCursorList list
  601.   global cursorList
  602.   if list = 1 then
  603.     set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  604.   end if
  605.   setDefaultCursor()
  606. end
  607.  
  608. on getCursorList
  609.   global cursorList
  610.   return cursorList
  611. end
  612.  
  613. on ___BTNS_HANDLERS___
  614. end
  615.  
  616. on switchButt spriteNum, castDown, macroName
  617.   if getRollName() <> EMPTY then
  618.     set spNum to EMPTY
  619.     do("put get_" & getRollName() & "Sprite() into spNum")
  620.     set the castNum of sprite spNum to the number of cast getRollName()
  621.     setRollName(EMPTY)
  622.   end if
  623.   set flag to 0
  624.   set SaveCast to the castNum of sprite spriteNum
  625.   set flag to swapCast(spriteNum, SaveCast, castDown)
  626.   repeat while the stillDown
  627.     set flag to swapCast(spriteNum, SaveCast, castDown)
  628.   end repeat
  629.   if flag = 1 then
  630.     sound stop 2
  631.     do(macroName)
  632.   end if
  633. end
  634.  
  635. on swapCast spriteNum, SaveCast, castDown
  636.   if rollOver(spriteNum) then
  637.     set the castNum of sprite spriteNum to the number of cast castDown
  638.     updateStage()
  639.     return 1
  640.   else
  641.     set the castNum of sprite spriteNum to the number of cast SaveCast
  642.     updateStage()
  643.     return 0
  644.   end if
  645. end
  646.  
  647. on DisableBtn btnName, btnSprite
  648.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  649. end
  650.  
  651. on EnableBtn btnName, btnSprite
  652.   set the castNum of sprite btnSprite to the number of cast btnName
  653. end
  654.  
  655. on setRollName theName
  656.   global RollName
  657.   set RollName to theName
  658. end
  659.  
  660. on getRollName
  661.   global RollName
  662.   return RollName
  663. end
  664.  
  665. on Set_NOTEPADSprite theSp
  666.   global NOTEPADSprite
  667.   set NOTEPADSprite to theSp
  668. end
  669.  
  670. on Get_NOTEPADSprite
  671.   global NOTEPADSprite
  672.   return NOTEPADSprite
  673. end
  674.  
  675. on Set_GLOSSARYSprite theSp
  676.   global GLOSSARYSprite
  677.   set GLOSSARYSprite to theSp
  678. end
  679.  
  680. on Get_GLOSSARYSprite
  681.   global GLOSSARYSprite
  682.   return GLOSSARYSprite
  683. end
  684.  
  685. on Set_SoundSprite theSp
  686.   global SoundSprite
  687.   set SoundSprite to theSp
  688. end
  689.  
  690. on get_SOUNDSprite
  691.   global SoundSprite
  692.   return SoundSprite
  693. end
  694.  
  695. on Set_HelpSprite theSp
  696.   global HelpSprite
  697.   set HelpSprite to theSp
  698. end
  699.  
  700. on get_HELPSprite
  701.   global HelpSprite
  702.   return HelpSprite
  703. end
  704.  
  705. on Set_NEXTSprite theSp
  706.   global NEXTSprite
  707.   set NEXTSprite to theSp
  708. end
  709.  
  710. on get_NEXTSprite
  711.   global NEXTSprite
  712.   return NEXTSprite
  713. end
  714.  
  715. on Set_BACKSprite theSp
  716.   global BACKSprite
  717.   set BACKSprite to theSp
  718. end
  719.  
  720. on get_BACKSprite
  721.   global BACKSprite
  722.   return BACKSprite
  723. end
  724.  
  725. on Set_NavigatorHL theSp
  726.   global NavigatorHL
  727.   set NavigatorHL to theSp
  728. end
  729.  
  730. on get_NavigatorHL
  731.   global NavigatorHL
  732.   return NavigatorHL
  733. end
  734.  
  735. on Set_IndexSprite theSp
  736.   global IndexSprite
  737.   set IndexSprite to theSp
  738. end
  739.  
  740. on get_IndexSprite
  741.   global IndexSprite
  742.   return IndexSprite
  743. end
  744.  
  745. on Set_TagWDSprite theSp
  746.   global TagWdSprite
  747.   set TagWdSprite to theSp
  748. end
  749.  
  750. on Get_TagWdSprite
  751.   global TagWdSprite
  752.   return TagWdSprite
  753. end
  754.  
  755. on Set_FindSprite theSp
  756.   global FindSprite
  757.   set FindSprite to theSp
  758. end
  759.  
  760. on get_FindSprite
  761.   global FindSprite
  762.   return FindSprite
  763. end
  764.  
  765. on Set_MainSprite theSp
  766.   global MainSprite
  767.   set MainSprite to theSp
  768. end
  769.  
  770. on get_MainSprite
  771.   global MainSprite
  772.   return MainSprite
  773. end
  774.  
  775. on Set_NEXT theSp
  776.   global next
  777.   set next to theSp
  778. end
  779.  
  780. on Get_NEXT
  781.   global next
  782.   return next
  783. end
  784.  
  785. on Set_PlayDub theMode
  786.   global PlayDub
  787.   set PlayDub to theMode
  788. end
  789.  
  790. on Get_PlayDub
  791.   global PlayDub
  792.   return PlayDub
  793. end
  794.  
  795. on Set_ScreenSubject theNum
  796.   global ScreenSubject
  797.   set ScreenSubject to theNum
  798. end
  799.  
  800. on Get_ScreenSubject
  801.   global ScreenSubject
  802.   return ScreenSubject
  803. end
  804.  
  805. on set_MarkSprite theNum
  806.   global MarkSprite
  807.   set MarkSprite to theNum
  808. end
  809.  
  810. on Get_MarkSprite
  811.   global MarkSprite
  812.   return MarkSprite
  813. end
  814.  
  815. on setTimer int
  816.   global theTime
  817.   set theTime to int
  818. end
  819.  
  820. on getTimer
  821.   global theTime
  822.   return theTime
  823. end
  824.  
  825. on DisableBTNS
  826.   global DisableMode
  827.   set DisableMode to 1
  828. end
  829.  
  830. on EnableBtns
  831.   global DisableMode
  832.   set DisableMode to 0
  833. end
  834.  
  835. on get_Disabled
  836.   global DisableMode
  837.   return DisableMode
  838. end
  839.